<%--
  Created by IntelliJ IDEA.
  User: i
  Date: 2019/9/20
  Time: 15:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@include file="common/tag.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title>工人列表页</title>
    <%@include file="common/head.jsp"%>
</head>
<body>
<!-- 页面显示部分-->
<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading text-center">
            <h2>员工列表</h2>
        </div>
        <div class="panel-body">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>
                        <a class="btn btn-info" href="/distribute/first" >返回主页</a>
                    </th>
                    <th>
                        <a class="btn btn-info" href="/distribute/addWorker" >添加员工</a>
                    </th>
                </tr>
                </thead>
            </table>
        </div>
        <div class="panel-body">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th>工号</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>年龄</th>
                    <th>电话</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="worker" items="${workerList}">
                    <tr>
                        <td>${worker.workerId}</td>
                        <td>${worker.workerName}</td>
                        <td>${worker.workerSex}</td>
                        <td>${worker.workerAge}</td>
                        <td>${worker.workerPhone}</td>
                        <td>
                            <a class="btn btn-info" href="/distribute/${worker.workerId}/deleteWorker" >删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</html>

